NET MESSAGE FLOAT
This command will return a float value from the current net message.
Return Float=NET MESSAGE FLOAT()
This command will return a float value from the current net message
The net message must be of the float type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
print "HANDLE NET MESSAGES (Press X To Continue)"
print "FLOAT: ";ReturnFloat#
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message float 0,mousey()*1.0
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=2 then ReturnFloat#=net message float()
get net message
endwhile
endwhile
MULTIPLAYER Commands Menu
Index